import request from '@/utils/request';

export function getProductDetails(categoryId, productId) {
  return request.get(`/product/${categoryId}/${productId}`);
}

export function addItemToCart(itemId) {
  return request.post(`/cart/add/${itemId}?quantity=1`);
}
// 获取收藏的食品列表
export const getFavoriteItems = () => {
  return request.get('/favorites');
};